/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Tema3;

import java.util.Scanner;

/**
 *
 * @author Alex
 */
public class dado_10_num_cual_mayor {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
      
         int[] num = new int[10];
         int i,mayor=0;
   
       
         System.out.println("dime 10 numeros: ");
         
         
        for (i = 0; i < num.length; i++) {
            System.out.print("numeros[" + i + "]= ");
            num[i] = teclado.nextInt();
           
        }
        
        for (i = 0; i < num.length; i++) {
            if (num[i]> mayor) {
            mayor=num [i];
            }
        }
        System.out.println("El mayor es: "+mayor);
    }
}
